const arr = [1, 2, 3, 4];
console.log(arr[Symbol.iterator]().next());

for (const data of arr) {
  console.log(data);
}
